package com.sonicvision.resourcetracker.employee;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sonicvision.resourcetracker.exceptions.DAOException;
import com.sonicvision.resourcetracker.exceptions.ServiceException;

@Service
public class EmployeeExperienceServiceImpl implements EmployeeExperienceService {

	
	@Autowired
	private EmployeeExperienceDAO dao;
	
	@Override
	public void addEmpExp(EmployeeExperience employeeExp)
			throws ServiceException {
		
		try {
			dao.addEmpExp(employeeExp);
		} catch (DAOException e) {
			e.printStackTrace();
		}
		
		
	}

	@Override
	public void updateEmpExp(EmployeeExperience employee_Experience_Id)
			throws ServiceException {
		   try {
			dao.updateEmpExp(employee_Experience_Id);
		} catch (DAOException e) {
			e.printStackTrace();
		}
		
	}

	@Override
	public void deleteEmpExp(EmployeeExperience employee_Experience_Id)
			throws ServiceException {
		  try {
			dao.deleteEmpExp(employee_Experience_Id);
		} catch (DAOException e) {
			e.printStackTrace();
		}
		
	}

	
	
}
